from xmlrpclib import  *

# --------------------------------------------------------------------
# test code

if __name__ == "__main__":
	
	# simple test program (from the XML-RPC specification)
	
	server = ServerProxy("http://localhost:8081")
	#server = ServerProxy("http://betty.userland.com")
	
	print server
	
	try:
		print server.TestHandler.echo("message")
		print server.echo.echo([0, "kk"])
	except Error, v:
		print "ERROR", v
